home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Apple Reference & Presen…rary 5 (Internal Edition)
/
Apple R&P Lib Internal v5.0.iso
/
6-Developer Demos
/
Developer Demos-Ed.
/
Macintosh School® CD-ROM Demo
/
Macintosh SchoolÆ CD-ROM Demo
/
card_20108.txt
< prev
next >
Wrap
Text File
|
1990-08-14
|
13KB
|
530 lines
-- card: 20108 from stack: in
-- bmap block id: 20927
-- flags: 4000
-- background id: 20347
-- name: SD Personal
----- HyperTalk script -----
on openCard
if card field "Birthday" is empty then
lock screen
put (item 2 of the abbrev date & ", " & char 4 to 5 of item 3 of the abbrev date) into card field "Birthday"
put empty into first char of card field "Birthday"
unlock screen
end if
tabKey
end openCard
-- part 1 (field)
-- low flags: 00
-- high flags: 0000
-- rect: left=108 top=80 right=95 bottom=242
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 10
-- style flags: 0
-- line height: 13
-- part name: Student Number
-- part 2 (field)
-- low flags: 00
-- high flags: 0000
-- rect: left=108 top=95 right=110 bottom=242
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 10
-- style flags: 0
-- line height: 13
-- part name: Surname
----- HyperTalk script -----
on closeField
if ((card field "Surname" is not empty) OR (card field "First Name" is not empty) OR (card field "Middle Name" is not empty)) then
put card field "Surname" & ", " & card field "First Name" & " " & card field "Middle Name" into field "Name"
else put empty into field "Name"
end closeField
-- part 3 (field)
-- low flags: 00
-- high flags: 0000
-- rect: left=108 top=110 right=125 bottom=242
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 10
-- style flags: 0
-- line height: 13
-- part name: First Name
----- HyperTalk script -----
on closeField
if ((card field "Surname" is not empty) OR (card field "First Name" is not empty) OR (card field "Middle Name" is not empty)) then
put card field "Surname" & ", " & card field "First Name" & " " & card field "Middle Name" into field "Name"
else put empty into field "Name"
end closeField
-- part 4 (field)
-- low flags: 00
-- high flags: 0000
-- rect: left=108 top=125 right=140 bottom=242
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 10
-- style flags: 0
-- line height: 13
-- part name: Middle Name
----- HyperTalk script -----
on closeField
if ((card field "Surname" is not empty) OR (card field "First Name" is not empty) OR (card field "Middle Name" is not empty)) then
put card field "Surname" & ", " & card field "First Name" & " " & card field "Middle Name" into field "Name"
else put empty into field "Name"
end closeField
-- part 5 (field)
-- low flags: 00
-- high flags: 0000
-- rect: left=108 top=140 right=155 bottom=242
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 10
-- style flags: 0
-- line height: 13
-- part name: Street
-- part 6 (field)
-- low flags: 00
-- high flags: 0000
-- rect: left=108 top=155 right=170 bottom=242
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 10
-- style flags: 0
-- line height: 13
-- part name: House Number
-- part 7 (field)
-- low flags: 00
-- high flags: 0000
-- rect: left=108 top=170 right=185 bottom=242
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 10
-- style flags: 0
-- line height: 13
-- part name: Apt #
-- part 8 (field)
-- low flags: 00
-- high flags: 0000
-- rect: left=108 top=185 right=200 bottom=242
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 10
-- style flags: 0
-- line height: 13
-- part name: City
-- part 9 (field)
-- low flags: 00
-- high flags: 0000
-- rect: left=108 top=200 right=215 bottom=242
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 10
-- style flags: 0
-- line height: 13
-- part name: State
-- part 10 (field)
-- low flags: 00
-- high flags: 0000
-- rect: left=108 top=215 right=230 bottom=242
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 10
-- style flags: 0
-- line height: 13
-- part name: Zip
-- part 14 (field)
-- low flags: 00
-- high flags: 0000
-- rect: left=108 top=230 right=245 bottom=242
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 10
-- style flags: 0
-- line height: 13
-- part name: Phone Number
-- part 11 (field)
-- low flags: 01
-- high flags: 0000
-- rect: left=353 top=80 right=95 bottom=487
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 10
-- style flags: 0
-- line height: 13
-- part name: Grade
----- HyperTalk script -----
on closeField
put card field "Grade" into field "Grade"
end closeField
-- part 12 (field)
-- low flags: 01
-- high flags: 0000
-- rect: left=353 top=95 right=110 bottom=487
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 10
-- style flags: 0
-- line height: 13
-- part name: Homeroom
----- HyperTalk script -----
on closeField
put card field "Homeroom" into field "Homeroom"
end closeField
-- part 13 (field)
-- low flags: 00
-- high flags: 0000
-- rect: left=353 top=110 right=125 bottom=487
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 10
-- style flags: 0
-- line height: 13
-- part name: Area
-- part 27 (field)
-- low flags: 01
-- high flags: 0000
-- rect: left=92 top=111 right=123 bottom=104
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 9
-- style flags: 0
-- line height: 12
-- part name: First
-- part 15 (button)
-- low flags: 00
-- high flags: 0000
-- rect: left=89 top=110 right=125 bottom=107
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: First
----- HyperTalk script -----
on mouseUp
put empty into card field "Middle"
put "P" into card field "First"
if ((card field "Surname" is not empty) OR (card field "First Name" is not empty) OR (card field "Middle Name" is not empty)) then
put card field "Surname" & ", " & card field "First Name" & " " & card field "Middle Name" into field "Name"
else put empty into field "Name"
end mouseUp
-- part 28 (field)
-- low flags: 01
-- high flags: 0000
-- rect: left=92 top=126 right=138 bottom=104
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 9
-- style flags: 0
-- line height: 12
-- part name: Middle
-- part 16 (button)
-- low flags: 00
-- high flags: 0000
-- rect: left=89 top=125 right=140 bottom=107
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Middle
----- HyperTalk script -----
on mouseUp
put empty into card field "First"
put "P" into card field "Middle"
if ((card field "Surname" is not empty) OR (card field "First Name" is not empty) OR (card field "Middle Name" is not empty)) then
put card field "Surname" & ", " & card field "Middle Name" & " " & card field "First Name" into field "Name"
else put empty into field "Name"
end mouseUp
-- part 20 (field)
-- low flags: 00
-- high flags: 0000
-- rect: left=353 top=125 right=140 bottom=487
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 10
-- style flags: 0
-- line height: 13
-- part name: Sex
-- part 18 (button)
-- low flags: 00
-- high flags: 2000
-- rect: left=263 top=95 right=109 bottom=352
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
----- HyperTalk script -----
on mouseDown
global checkLoc2
get the rect of me
put item 1 of it + 90 into horz
put item 2 of it into vert
put "NA ,100,102,103,104," into menuList
put "105,106,107,108,109,110,111,112,113,114,115" after menuList
put PopUpMenu(menuList,vert,horz,checkLoc2) into temp
if temp > 0 then
put item temp of menuList into card field "Homeroom"
put item temp of menuList into field "Homeroom"
put temp into checkLoc2
end if
end mouseDown
-- part 19 (field)
-- low flags: 00
-- high flags: 0000
-- rect: left=353 top=140 right=155 bottom=487
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 10
-- style flags: 0
-- line height: 13
-- part name: SIN
----- HyperTalk script -----
on mouseDown
pass mouseDown
end mouseDown
-- part 17 (button)
-- low flags: 00
-- high flags: 2000
-- rect: left=263 top=80 right=94 bottom=352
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
----- HyperTalk script -----
on mouseDown
global checkLoc1
get the rect of me
put item 1 of it + 90 into horz
put item 2 of it into vert
put "(K ," into menuList
put "(1,(2,(3,(4,(5,(6,(7,(8,(9,(10," after menuList
put "11,12,(13" after menuList
put PopUpMenu(menuList,vert,horz,checkLoc1) into temp
if temp > 0 then
put item temp of menuList into card field "Grade"
put item temp of menuList into field "Grade"
put temp into checkLoc1
end if
end mouseDown
-- part 21 (field)
-- low flags: 00
-- high flags: 0000
-- rect: left=353 top=155 right=170 bottom=487
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 10
-- style flags: 0
-- line height: 13
-- part name: Birthday
----- HyperTalk script -----
on mouseDown
pass mouseDown
end mouseDown
-- part 22 (field)
-- low flags: 00
-- high flags: 0000
-- rect: left=353 top=170 right=185 bottom=487
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 10
-- style flags: 0
-- line height: 13
-- part name: Graduating Year
----- HyperTalk script -----
on mouseDown
pass mouseDown
end mouseDown
-- part 23 (field)
-- low flags: 00
-- high flags: 0000
-- rect: left=353 top=185 right=200 bottom=487
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 10
-- style flags: 0
-- line height: 13
-- part name: Birthplace
----- HyperTalk script -----
on mouseDown
pass mouseDown
end mouseDown
-- part 24 (field)
-- low flags: 00
-- high flags: 0000
-- rect: left=353 top=200 right=215 bottom=487
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 10
-- style flags: 0
-- line height: 13
-- part name: Enrollment Date
----- HyperTalk script -----
on mouseDown
pass mouseDown
end mouseDown
-- part 25 (field)
-- low flags: 00
-- high flags: 0000
-- rect: left=353 top=215 right=230 bottom=487
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 10
-- style flags: 0
-- line height: 13
-- part name: Locker Number
----- HyperTalk script -----
on mouseDown
pass mouseDown
end mouseDown
-- part 26 (field)
-- low flags: 00
-- high flags: 0000
-- rect: left=353 top=230 right=245 bottom=487
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 10
-- style flags: 0
-- line height: 13
-- part name: Previous School
----- HyperTalk script -----
on mouseDown
pass mouseDown
end mouseDown
-- part 29 (button)
-- low flags: 00
-- high flags: A005
-- rect: left=12 top=314 right=330 bottom=246
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 3
-- text size: 10
-- style flags: 0
-- line height: 13
-- part name: Automatically force first letters uppercase
-- part contents for card part 27
----- text -----
P